/*
 * Copyright (C) 2016  Nicola Spanti (RyDroid) <dev@nicola-spanti.info>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */


#ifndef PLANET_WARS_2D_RT_CORE_MODEL_SELECTION_H
#define PLANET_WARS_2D_RT_CORE_MODEL_SELECTION_H


#include "PlanetWars2dRT-core/utils/selection_2d_generic.h"
#include "PlanetWars2dRT-core/specific/model/universe_essential.h"


DEFINE_RECTANGLE_STRUCT(uint)
DEFINE_SELECTION_2D_STRUCT(uint)


EXTERN_C_BEGIN


/**
 * TODO implementation
 * @param[out] nb Number of ships
 */
ship_t**
selection_2d_uint_get_ships(universe_t* a_universe,
			    const selection_2d_uint* a_selection,
			    size_t* nb);

/**
 * @param[out] nb Number of ships
 */
ship_t**
selection_2d_uint_get_ships_of_player_index(universe_t* a_universe,
					    const selection_2d_uint* a_selection,
					    unsigned char player_index,
					    size_t* nb);


EXTERN_C_END


#endif
